#include <stdio.h>
#include <stdlib.h>

struct student
{
    int num;
    char name[64];
};

int main(int argc, char const *argv[])
{
	void *p = malloc(sizeof(struct student) * 4 + 4);
	int *num = p;
	*num = 4;
	struct student *stu = p + sizeof(int);
	stu[1].num = 10;
	stu[2].num = 100;

	printf("%d\n", *num);
	printf("%d\n", stu[1].num);
	printf("%d\n", stu[2].num);

	return 0;
}